-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add QSPI NOR flash driver for SF32LB #96085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ce5be5e
to
7335cff
Compare
7335cff
to
9c0f2b4
Compare
9c0f2b4
to
488686a
Compare
5218a60
to
003a034
Compare
Questions for @rabbitsaviola
|
it's ok that DMA code is not placed in RAM as sequence command mode used.
write doesn't work when chunk_len > FIFO size is because RBSIZE is set to 3 by L535. If RBSIZE is 0, chunk_len=128byte works well. |
ba3f8e5
to
f8292de
Compare
last push: moved flash nor parameters to module-level variable, same as in |
178403c
to
8274aca
Compare
8274aca
to
e601bd6
Compare
|
||
description: Generic NOR flash on QSPI bus | ||
|
||
compatible: "jedec,qspi-nor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this new binding needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see commit description, we cannot use jedec,spi-nor
because it's tied to SPI buses, but, in Zephyr, QSPI controllers live in a limbo.
e601bd6
to
98ecb84
Compare
Add compatible for SiFli SF32LB MPI operating as QSPI NOR controller. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Compatible should be set at board level, depending on how MPI IP is used (e.g. NOR, NAND, PSRAM). Signed-off-by: Gerard Marull-Paretas <[email protected]>
No longer used. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Ideally we should be able to just use jedec,spi-nor (to keep Linux compatibility), but, QSPI controllers live in a limbo in Zephyr. Adding this binding won't make things worse than they are. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Command was missing. Signed-off-by: Gerard Marull-Paretas <[email protected]>
So we can obtain a register address (as hex) given its name. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Take it from the chosen flash node parent (MPI controller) 'nor' register, which contains the memory mapped address for the NOR flash. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Initial driver for the SF32LB MPI accessing QSPI NOR flash devices. Signed-off-by: Gerard Marull-Paretas <[email protected]>
So that flash driver can be used (MPI2 works in QSPI mode). Signed-off-by: Gerard Marull-Paretas <[email protected]>
Allow obtaining SFDP parameters using SF32LB driver. Signed-off-by: Gerard Marull-Paretas <[email protected]>
98ecb84
to
3bfb8ae
Compare
|
last pushes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, test pass on my board.
Add flash (QSPI NOR) driver for SF32LB